Install docker compose
Typically it comes bundled with the Docker desktop, so no further installations need to be run for Windows and Mac users.
But for linux, you must separately install the plugin:
Install using the repository
-
Set up the repository. Find distribution-specific instructions in:
Ubuntu | CentOS | Debian | Raspberry Pi OS | Fedora | RHEL | SLES.
-
Update the package index, and install the latest version of Docker Compose:
- For Ubuntu and Debian, run:
$ sudo apt-get update
$ sudo apt-get install docker-compose-plugin- For RPM-based distributions, run:
$ sudo yum update
$ sudo yum install docker-compose-plugin -
Verify that Docker Compose is installed correctly by checking the version.
$ docker compose version
Expected output:
Docker Compose version vN.N.N
Where
vN.N.N
is placeholder text standing in for the latest version.
The official docs are here: https://docs.docker.com/compose/install/linux/